home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1995 June: Reference Library / Dev.CD Jun 95 / Dev.CD Jun 95.toast / Technical Documentation / PCI Information / PCI Developer’s Kit (disk) / Expansion Manager / DisplayDeviceTree / DisplayDeviceTree README < prev    next >
Encoding:
Text File  |  1994-06-27  |  1.0 KB  |  25 lines  |  [TEXT/ttxt]

  1. DisplayDeviceTree
  2. by Ben Manuto, ©1994 Apple Computer, Inc.
  3.  
  4. DisplayDeviceTree is a simple application that traverses and displays all the devices and properties of the Expansion Manager's device tree. Displayed for each device is the following:
  5.  
  6. • The nodeID.
  7. • The device's peer nodeID.
  8. • The device's parent node ID.
  9. • The device's child nodeID.
  10. • The device's name.
  11. • The device's attributes.
  12.  
  13.  
  14. For each device's property, the following infomation is displayed:
  15.  
  16. • The property name.
  17. • The property's nodeID.
  18. • The property's peer nodeID.
  19. • The size of the data for the property.
  20. • The property's data expressed as a zero-terminated string.
  21.      (Note: if there are CR chars in the string, this may cause the output to look bad)
  22. • The property's data expressed as hex bytes (up to 512 bytes).
  23.  
  24.  
  25. Should there be a problem reading the device tree, the program will display an error code and crap-out somewhere along the line. Admittedly, I didn't spend much time making sure all the error cases will get the program out of the recursive loop accurately.